Conditions | 3 |
Paths | 2 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | (function ($, app) { |
||
24 | function setCurrentMenuItem(selectedLinks) { |
||
25 | $(app.MENU_ROOT_SELECTOR + ' li.' + app.MENU_CURRENT_CLASS).removeClass(app.MENU_CURRENT_CLASS); |
||
26 | if (!selectedLinks || !selectedLinks.length) { |
||
27 | return; |
||
28 | } |
||
29 | |||
30 | $(selectedLinks).each(function (key, currentItem) { |
||
31 | $(app.MENU_ROOT_SELECTOR + ' li[data-name="' + currentItem + '"]') |
||
32 | .addClass(app.MENU_CURRENT_CLASS) |
||
33 | .parents(app.MENU_ROOT_SELECTOR + ' li').each(function () { |
||
34 | $(this).addClass(app.MENU_CURRENT_CLASS); |
||
35 | }); |
||
36 | }); |
||
37 | } |
||
38 | })(jQuery, application); |
||
|
|||
39 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.